# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=sslcaudit
pkgver=524.f218b9b
pkgrel=5
groups=('blackarch' 'blackarch-scanner' 'blackarch-crypto')
pkgdesc='Utility to perform security audits of SSL/TLS clients.'
url='https://github.com/grwl/sslcaudit'
arch=('any')
license=('GPL3')
depends=('python2' 'python2-m2crypto')
makedepends=('git' 'python2-setuptools')
source=("git+https://github.com/grwl/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd $pkgname

  python2 setup.py build
}

package() {
  cd $pkgname

  python2 setup.py install --root="$pkgdir" --skip-build
}

